# $OpenBSD: Makefile,v 1.6 2013/03/11 11:06:04 espie Exp $
# $RuOBSD: Makefile,v 1.4 2009/02/05 06:38:32 form Exp $

COMMENT=		DEC Professional 350 emulator based on SIMH

VERSION=		9-16-06
DISTNAME=		xhomer-${VERSION}
PKGNAME=		xhomer-${VERSION:S/-/./g}
REVISION=		1
EXTRACT_SUFX=		.tgz
CATEGORIES=		emulators

HOMEPAGE=		http://xhomer.isani.org/xhomer/

# SIMH + GPLv2
PERMIT_PACKAGE_CDROM=	No
PERMIT_PACKAGE_FTP=	Yes

WANTLIB=		X11 Xext Xxf86dga c m pthread-stubs xcb

MASTER_SITES=		${HOMEPAGE}

USE_GMAKE=		Yes
MAKE_ENV=		X11DIR=${X11BASE}
ALL_TARGET=		xhomer

NO_TEST=		Yes

do-install:
	${INSTALL_PROGRAM} ${WRKBUILD}/xhomer ${PREFIX}/bin
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xhomer
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xhomer/html
	${INSTALL_DATA} ${WRKDIST}/LICENSE ${PREFIX}/share/doc/xhomer
	${INSTALL_DATA} ${WRKDIST}/README ${PREFIX}/share/doc/xhomer
	${INSTALL_DATA} ${WRKDIST}/DOC/* ${PREFIX}/share/doc/xhomer/html
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xhomer
	${INSTALL_DATA} ${WRKDIST}/xhomer.cfg ${PREFIX}/share/examples/xhomer

.include <bsd.port.mk>
